﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FinancialManagement.Domain.DTO
{
    public class SaleProfitDTO
    {
        /// <summary>
        /// 销售合同id
        /// </summary>
    
        public int SaleContractId { get; set; }
        /// <summary>
        /// 合同主题
        /// </summary>
        public string? ContractTopic { get; set; }

        /// <summary>
        /// 合同编号
        /// </summary>
        public string? SCcontractNumber { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string? ClientName { get; set; }
        /// <summary>
        /// 销售人员id
        /// </summary>
        public int? SCSalespeopleId { get; set; }
        /// <summary>
        /// 销售人员
        /// </summary>
        public string? SCSalespeople { get; set; }
        /// <summary>
        ///  合同金额
        /// </summary>
        public decimal? SCcontractPrice { get; set; }
        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal? SCPreferentialPrice { get; set; }
        /// <summary>
        /// 优惠后金额
        /// </summary>
        public decimal? PreferentialPrice { get; set; }
        /// <summary>
        /// 数量合计
        /// </summary>
        public int? SCNum { get; set; }
        /// <summary>
        /// 税额总计
        /// </summary>
        public decimal? SCTax { get; set; }
        /// <summary>
        ///关联项目
        /// </summary>
        public string? RelevancyIName { get; set; }
        /// <summary>
        /// 出库状态
        /// </summary>
        public int? SCOutState { get; set; }
        /// <summary>
        /// 发货状态
        /// </summary>
        public int? SCShipmentState { get; set; }
        /// <summary>
        /// 销售合同产品id
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)] // 主键和自增
        public int SaleContractProductId { get; set; }
        /// <summary>
        /// 出库id
        /// </summary>
        public int OutboundRequestId { get; set; }
        /// <summary>
        /// 申请出库总数
        /// </summary>
        public int? OROutNum { get; set; }
        /// <summary>
        /// 发货数量
        /// </summary>
        public int? ProNum { get; set; }
    
        /// <summary>
        /// 发货申请编号
        /// </summary>
        public string? SRANumber { get; set; }

    }
}
